package com.zc.app.shiro.peer;

import java.io.Serializable;

/**
 * Created by zc on 2016/7/15.
 */
public class PermissionPeer implements Serializable {

    private static final long serialVersionUID = -3696096183603392498L;

    private Long        id;
    private String      permission;
    private String      description;
    private Boolean     available       = Boolean.FALSE;

    public PermissionPeer() {
    }

    public PermissionPeer(String permission,
                          String description,
                          Boolean available) {
        this.permission = permission;
        this.description = description;
        this.available = available;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Boolean getAvailable() {
        return available;
    }

    public void setAvailable(Boolean available) {
        this.available = available;
    }

    @Override
    public String toString() {
        return "PermissionPeer{" +
                "id=" + id +
                ", permission='" + permission + '\'' +
                ", description='" + description + '\'' +
                ", available=" + available +
                '}';
    }
}
